package com.study.product.service.impl;

import com.study.product.bean.Product;
import com.study.product.service.IProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @Author: WPX
 * @Create: 2025/07/31
 **/
@Service
public class ProductServiceImpl implements IProductService {

    @Override
    public Product getProductById(Long id) {
        Product product = new Product();
        product.setId(id);
        product.setPrice(new BigDecimal("99"));
        product.setProductName("苹果-" + id);
        product.setNum(2);
        return product;
    }
}
